﻿using System;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;

// Token: 0x02000387 RID: 903
[RequireComponent(typeof(Selectable))]
public class HighlightFix : MonoBehaviour, IPointerEnterHandler, IDeselectHandler, IEventSystemHandler
{
	// Token: 0x0600179D RID: 6045 RVA: 0x0009626C File Offset: 0x0009446C
	public void OnPointerEnter(PointerEventData eventData)
	{
		if (!EventSystem.current.alreadySelecting)
		{
			EventSystem.current.SetSelectedGameObject(base.gameObject);
		}
	}

	// Token: 0x0600179E RID: 6046 RVA: 0x0009628D File Offset: 0x0009448D
	public void OnDeselect(BaseEventData eventData)
	{
		base.GetComponent<Selectable>().OnPointerExit(null);
	}
}
